package com.ews.onlineexchange.controller.activitii;

import javax.enterprise.inject.Model;
import org.activiti.engine.task.TaskQuery;

@Model
public class BuyerCancelApplyRejectTaskList extends BpmList {
	


	@Override
	TaskQuery createTaskQuery() {
		TaskQuery taskQuery = taskService.createTaskQuery();

		String username = userService.getLoginedUser().getUsername();
		taskQuery.taskAssignee( username );
		taskQuery.includeProcessVariables();
		
		taskQuery.orderByTaskCreateTime();
		taskQuery.asc();
		
		return taskQuery;
	}	
	
	
	
}
